import { request } from "./rquest.js"
//注册请求
export function register(data) {
    return request({
        url: '/api/auth/register',
        method: 'post',
        data
    })
}

//登录请求
export function login(data) {
    return request({
        url: '/api/auth/login',
        method: 'post',
        data
    })
}

//推出接口
export function logout(data) {
    return request({
        url: '/api/auth/logout',
        method: 'post',
        data
    })
}

export function getUser(){
return request({
    url:'/api/user'
})
}